@extends('Layout/layout')

@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("adjust").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('allow/adjusts') }}"><p>职位调整申请&nbsp;<span style="color:red">{{ $num1 }}</span></p></a></li>
<li><a href="{{ url('allow/loffice') }}"><p>离职申请&nbsp;<span style="color:red">{{ $num2 }}</span></p></a></li>
<li><a href="{{ url('allow/leaves') }}"><p>请假申请&nbsp;<span style="color:red">{{ $num3 }}</p></a></li>
<!-- <li><a href="{{ url('') }}"><p>审批文档流程管理</p></a></li> -->
</ul>
</div>
<div class="mian_b">
<div class="mian_b1">
<form action="{{url('/allow/loffice')}}" modth="get">
	
<p class="mian_b1_sousuo"><input name="name" type="text" value="申请人"></p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>

</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr>
<td width="3%" class="mian_b_bg_lm"><input name="" type="checkbox" value="">&nbsp;</td>
<td width="11%" class="mian_b_bg_lm"><span></span>ID</td>
<td width="11%" class="mian_b_bg_lm"><span></span>申请人</td>
<td width="13%" class="mian_b_bg_lm"><span></span>离职原因</td>
<td width="10%" class="mian_b_bg_lm"><span></span>离职时间</td>
<td width="37%" class="mian_b_bg_lm"><span></span>状态</td>
<td class="mian_b_bg_lm" colspan="1"><span></span>操作</td>
</tr>
@foreach($res as $k => $v)
<tr>
<td><input name="" type="checkbox" value="">&nbsp;</td>
<td>{{ $v['LeaveOfficeID'] }} </td>
<td>{{ $v['PersonName'] }} </td>
<td>{{ $v['LeaveReason'] }}</td>
<td>{{ $v['LeaveTime'] }}</td>
<td>
@if($v['Status'] == 0)
 未审批 
@elseif($v['Status'] == 1) 
已审批 
@endif
</td>
@if($v['Status'] == 0)
<td width="8%" class="mian_b_icon_01"><a href="{{ url('allow/loffice/edit',['id'=>$v['LeaveOfficeID']]) }}">审批</a></td>
@else
<td width="8%" >已审批</td>
@endif
</tr>
@endforeach
<tr>
<td width="3%" class="mian_b_bg_lm"><input name="" type="checkbox" value="">&nbsp;</td>
<td width="11%" class="mian_b_bg_lm"><span></span>ID</td>
<td width="11%" class="mian_b_bg_lm"><span></span>申请人</td>
<td width="13%" class="mian_b_bg_lm"><span></span>离职原因</td>
<td width="10%" class="mian_b_bg_lm"><span></span>离职时间</td>
<td width="37%" class="mian_b_bg_lm"><span></span>状态</td>
<td class="mian_b_bg_lm" colspan="1"><span></span>操作</td>
</tr>
</table>
<div style="float:left;" id="fenye">
{!! $res->appends($info)->render() !!}
</div>

</div>
</div>
</body>

@endsection